package com.city.service.pub.impl;

import com.city.domain.pub.PubNationCategory;
import com.city.repository.pub.PubNationCategoryRepository;
import com.city.service.pub.PubNationCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @deprecation: 民族分类
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Service
public class PubNationCategoryServiceImpl implements PubNationCategoryService {

    @Autowired
    private PubNationCategoryRepository nationCategoryRepository;

    @Override
    public List<PubNationCategory> getAll() {
        System.out.println("ok");
        return nationCategoryRepository.findAll();
    }

    @Override
    public PubNationCategory findOne(Integer id) {
        return nationCategoryRepository.findOne(id);
    }
}
